/**
 *
 * Copyright Pact Lab of H.I.T.
 *
 * Designed and Implemented by Grid Researching Group, 
 * Pact Lab, Harbin
 * 
 * This Project is part of the national 973 Project:
 * Internet Based Virtual Computing Environment
 *
 * http://pact518.hit.edu.cn
 * 
 * Author:       Meteor <meteorlxk@gmail.com> 
 * Copyright:    pact518 
 * Version:      1.0
 * Created:      2009-4-6 
 * LastModified: 2009-4-6
 */
package edu.hit.pact.pgse.bean;

import java.io.Serializable;
/**
 * @author Meteor
 * 
 */
public class TaskPiece implements Serializable {

	private static final long serialVersionUID = 8360640943144604866L;

	protected long id;
	protected String homePage;
	protected int type;
	protected int priority;
	protected int maxPageNum;
	protected long startTime;
	
	/**
	 * @param id
	 */
	public TaskPiece(long id) {
		super();
		this.id = id;
	}
	
	public long getStartTime() {
		return startTime;
	}

	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}

//	public static enum TYPE {
//		WEB, 
//		BBS, BLOG
//	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getHomePage() {
		return homePage;
	}

	public void setHomePage(String homePage) {
		this.homePage = homePage;
	}

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public int getMaxPageNum() {
		return maxPageNum;
	}

	public void setMaxPageNum(int maxPageNum) {
		this.maxPageNum = maxPageNum;
	}
	
	/*
	 * (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("################Task Piece##################\n");
		buffer.append("id : " + this.id + "\n");
		buffer.append("home : " + this.homePage + "\n");
		buffer.append("type : " + this.type + "\n");
		buffer.append("priority : " + this.priority + "\n");
		buffer.append("############################################\n");
		return buffer.toString();
	}
}
